<extend name="layout/main" />

<block name="HEADER">
	<script type="text/javascript" src="__PUBLIC__/lib/echarts.min.js"></script>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/lib/layui/css/layui.01.css" />
	<load:css src="modules/goods/index/index.css" />
</block>

<block name="CONTENT">
	<div class="wrapper">
		<div class="panel-heading" style="background: #FFFFFF;">
			<control:search id="searchs" />
		</div>
		<div class="content hidden" style="overflow: auto;background: #f9f9f9;">
			<div class="layui-fluid" id="dom-info" style="padding-bottom: 5px;">

				<div style="height: 415px;background: #FFFFFF;margin-bottom: 5px;"></div>

				<script type="text/html" id="tpl-dom">
					<div class="wrapper-title">营业数据</div>
					<!--累计-->
					<div class="layui-row">
						<div class="layui-col-xs12 layui-col-md8">
							<div class="layui-row layui-col-space10">
								<div class="layui-col-sm2 layui-col-md3 layui-col-xs6 btn" name="会员总数" arg="huiyuanzs">
									<div class="layui-card">
										<div class="layui-card-header">会员总数</div>
										<div class="layui-card-body layuiadmin-card-list">
											<p class="layuiadmin-big-font">{{data.total_user_vip_num}}个</p>
										</div>
									</div>
								</div>
								<div class="layui-col-sm2 layui-col-md3 layui-col-xs6 btn" name="订单总数" arg="dd">
									<div class="layui-card">
										<div class="layui-card-header">订单总数</div>
										<div class="layui-card-body layuiadmin-card-list">
											<p class="layuiadmin-big-font">{{data.total_order_num}}个</p>
										</div>
									</div>
								</div>
								<div class="layui-col-sm2 layui-col-md3 layui-col-xs6 btn" name="成交金额" arg="cj">
									<div class="layui-card">
										<div class="layui-card-header">成交金额</div>
										<div class="layui-card-body layuiadmin-card-list">
											<p class="layuiadmin-big-font">{{data.total_order_money}}元</p>
										</div>
									</div>
								</div>
								<div class="layui-col-sm2 layui-col-md3 layui-col-xs6 btn" name="商品总数" arg="sp">
									<div class="layui-card">
										<div class="layui-card-header">商品总数</div>
										<div class="layui-card-body layuiadmin-card-list">
											<p class="layuiadmin-big-font">{{data.total_goods_num}}个</p>
										</div>
									</div>
								</div>
							</div>
							<div class="layui-row layui-col-space10">
								<div class="layui-col-sm2 layui-col-md3 layui-col-xs6 btn" name="今日订单数" arg="jr">
									<div class="layui-card">
										<div class="layui-card-header">今日订单数</div>
										<div class="layui-card-body layuiadmin-card-list">
											<p class="layuiadmin-big-font">{{data.total_order_today_num}}个</p>
										</div>
									</div>
								</div>
								<div class="layui-col-sm2 layui-col-md3 layui-col-xs6 btn" name="昨日订单数" arg="huiyuanz22s">
									<div class="layui-card">
										<div class="layui-card-header">昨日订单数</div>
										<div class="layui-card-body layuiadmin-card-list">
											<p class="layuiadmin-big-font">{{data.total_order_yesterday_num}}个</p>
										</div>
									</div>
								</div>
								<div class="layui-col-sm2 layui-col-md3 layui-col-xs6 btn" name="近7天订单数" arg="j7">
									<div class="layui-card">
										<div class="layui-card-header">近7天订单数</div>
										<div class="layui-card-body layuiadmin-card-list">
											<p class="layuiadmin-big-font">{{data.total_order_week_num}}个</p>
										</div>
									</div>
								</div>
								<div class="layui-col-sm2 layui-col-md3 layui-col-xs6 btn" name="本月订单数" arg="by">
									<div class="layui-card">
										<div class="layui-card-header">本月订单数</div>
										<div class="layui-card-body layuiadmin-card-list">
											<p class="layuiadmin-big-font">{{data.total_order_month_num}}个</p>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="layui-col-xs12 layui-col-md4">
							<div class="pocket">
								<div class="pocket-info">
									<div class="pocket-info-text1">店铺钱包金额</div>
									<div class="pocket-info-text2">{{data.total_shop_wallet}}</div>
								</div>
								<div>
									<!--<button type="button" class="layui-btn layui-btn-normal pocket-btn" onclick="page.invest()">充值</button>-->
									<!--<button type="button" class="layui-btn layui-btn-normal pocket-btn" style="float: right;" onclick="page.withdraw()">提现</button>-->
								</div>
							</div>
						</div>
					</div>
					
				</script>
			</div>

			<!--数据概览-->
			<div class="layui-fluid" style="overflow: hidden;padding-top: 30px;">
				<div class="layui-col-sm12">
					<div class="layui-card">
						<div class="layui-card-body" style="padding: 0;">
							<div class="layui-row layui-col-space10" style="height: 480px;">
								<div class="layui-col-md6 layui-col-sm12" style="height: 100%;">
									<div class="wrapper-title">本月成交额</div>
									<div id="echar-money" class="myChart myChart-ber"></div>
								</div>
								<div class="layui-col-md6 layui-col-sm12" style="height: 100%;">
									<div class="wrapper-title">本月订单数</div>
									<div id="echar-order" class="myChart myChart-ber"></div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</block>

<block name="FOOTER">
	<script id="investForm" type="text/html">
		<form class="layui-form set-form"  id="invest" lay-filter="setForm">
			<table class="set-table">
				<tr>
					<td class="f-orage">充值金额</td>
					<td><input  type="number" placeholder="最低充值100.00元" class="layui-input" name="money" datatype="*"></td>
				</tr>
				<tr>
					<td colspan="2" style="text-align: left;padding-left: 30px;"><div>提示：<span id="tips">提示内容</span></div></td>
				</tr>
			</table>
			
		</form>
	</script>

	<script id="widthdrawForm" type="text/html">
		<form class="layui-form set-form"  id="withdraw" lay-filter="setForm">
			<table class="set-table">
				<tr>
					<td class="f-orage">提现金额</td>
					<td><input  type="number" placeholder="最低提现100.00元" class="layui-input" name="money" datatype="*"></td>
				</tr>
				<tr>
					<td class="f-orage">提现到</td>
					<td>
						<select name="type" lay-verify="" id="select">
							<option value="wx">微信</option>
							<option value="alipay">支付宝</option>
							<option value="0571">银行卡</option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="f-orage">账户名称</td>
					<td><input  type="text" placeholder="请输入" class="layui-input" name="name" datatype="*"></td>
				</tr>
				<tr>
					<td class="f-orage">账户账号</td>
					<td><input  type="text" placeholder="请输入" class="layui-input" name="code" datatype="*"></td>
				</tr>
			</table>
			
		</form>
	</script>

	<load:js src="modules/goods/index/index.js?t=01" />
</block>